var express = require('express');
var router = express.Router();
var sign =require('./sign.js');


exports.protocoldictionaryList = function(req,res){
   sign.delEmptyValue(req.body); 
    sign.dataReq(req,req.body,req.session.apikey,'/sysmanage/protocoldictionary/list',"POST",function(ResData){
        if(ResData!=""){
        	res.json(ResData);
        }
    });
}


exports.protocoldictionaryEdit = function(req,res){
    sign.delEmptyValue(req.body); 
    sign.dataReq(req,req.body,req.session.apikey,'/sysmanage/protocoldictionary/edit',"POST",function(ResData){
        if(ResData!=""){
         res.json(ResData);
       
        }
    });
}

exports.protocoldictionaryGet = function(req,res){
    sign.dataReq(req,req.body,req.session.apikey,'/sysmanage/protocoldictionary/getktv',"POST",function(ResData){
        if(ResData!=""){
         res.json(ResData);
        }
    });
}

exports.protocoldictionaryDel = function(req,res){

    sign.dataReq(req,{"ids":[req.body.id]},req.session.apikey,'/sysmanage/protocoldictionary/del',"POST",function(ResData){
        if(ResData!=""){
         res.json(ResData);

        }
    });
}
